package com.hzw.saas.common.storage.config;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zzl
 * @since 04/01/2021
 */
@Component
@ConfigurationProperties(prefix = "aws.s3", ignoreInvalidFields = true, ignoreUnknownFields = true)
@Data
@EqualsAndHashCode(callSuper = true)
public class AwsS3Config extends S3Config{

    /**
     * param1: bucket
     * param2: region
     * param3: resource key
     */
    private String s3UrlFormat = "https://%s.s3.%s.amazonaws.com.cn/%s";

    private String bucket2News = "";

}
